
# 登录动作
import os

from main.settings import BASE_DIR

USER_ACTION_REGISTER = 'register'
USER_ACTION_LOGIN = 'login'
USER_ACTION_LOGOUT = 'logout'
USER_ACTION_VERIFY = 'verify'

# 超级管理员列表
SUPER_ADMINS = ['root', 'admin']

# 状态码
HTTP_OK = 200
HTTP_CREATE_OK = 201

# 登录token前缀
ADMIN = 'admin:'
USER = 'user:'

# 验证token前缀
VERIFY = 'verify:'

# 支付token
PAY = 'pay:'

# 支付宝
APPID = '2016101200667923'
APP_PRIVATE_KEY = open(os.path.join(BASE_DIR, 'alipay/app_private_key.txt')).read()
ALIPAY_PUBLIC_KEY = open(os.path.join(BASE_DIR, 'alipay/alipay_public_key.txt')).read()
